function tree(req, res) {
  const result = {
    "id": "system",
    'label':'终端防扩散系统',
    "children": [
      {
        "id": "Mysql",
        'label':'Mysql',
        "children": [
          {
            "id": "01",
            'label':'A用户身份相关数据',
            "children": [
              {
                "id": "01-1",   
                'label':'敏感级',
                "children": [
                  {
                    "id": "01-1-1", 
                    'label':'姓名',
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                      cursor:'pointer',
                    },
                  },
                  {
                    "id": "01-1-2",  
                    'label':'固定号码，手机号码',  
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                    },     
                  },
                  {
                    "id": "01-1-3", 
                    'label':'地址',     
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                    },      
                  },
                ]          
              },
              {
                "id": "01-2",
                'label':'低敏感级', 
                "children": [
                  {
                    "id": "01-2-1", 
                    'label':'性别',
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                    },
                  },
                  {
                    "id": "01-2-2",  
                    'label':'邮箱',  
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                    },     
                  },                  
                ]        
              },
              {
                "id": "01-3",
                'label':'较敏感级',  
                "children": [
                  {
                    "id": "01-3-1", 
                    'label':'住址',
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                    },
                  },                                    
                ]    
              },           
            ]
          },
          {
            "id": "02",
            'label':'B1-1服务内容数据',  
            "children": [              
              {
                "id": "02-2",
                'label':'敏感级', 
                "children": [
                  {
                    "id": "02-2-1", 
                    'label':'短信内容',
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                    },
                  },
                  {
                    "id": "02-2-2",  
                    'label':'彩信内容',   
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                    },    
                  },                  
                ]        
              },
              {
                "id": "02-3",
                'label':'较敏感级',  
                "children": [
                  {
                    "id": "02-3-1", 
                    'label':'用户上网访问内容',
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                    },
                  },                                    
                ]    
              },           
            ]
          },
          {
            "id": "03",
            'label':'B1-2联系人信息',            
          },              
        ]
      },
      {
        "id": "Oracle",
        'label':'Oracle',
        "children": [            
          {
            "id": "11",
            'label':'A1用户身份和标识信息', 
            "children": [              
              {
                "id": "11-1",
                'label':'敏感级', 
                "children": [
                  {
                    "id": "11-1-1", 
                    'label':'姓名',
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                    },
                  },
                  {
                    "id": "11-1-2",  
                    'label':'证件类型及号码', 
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                      cursor:'pointer',
                    },      
                  },  
                  {
                    "id": "11-1-3",  
                    'label':'驾照编号',   
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                    },    
                  },                  
                ]        
              },
              {
                "id": "11-2",
                'label':'较敏感级',  
                "children": [
                  {
                    "id": "11-2-1", 
                    'label':'邮箱',
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                    },
                  },                                    
                ]    
              },           
            ] 
          },
          {
            "id": "12",
            'label':'C1-1业务订购关系',  
            "children": [ 
              {
                "id": "12-1",
                'label':'敏感级',  
                "children": [
                  {
                    "id": "12-1-1", 
                    'label':'业务招投标书',
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                    },
                  },   
                  {
                    "id": "12-1-2", 
                    'label':'基本业务订购关系',
                    style: {
                      fill: '#87d068',
                      fontSize: 12,
                      stroke: '#fff',
                    },
                  },                                  
                ]    
              },           
            ]  
          },    
        ]
      },
    ]
  };
  return res.json(result);
}

function table(req, res) {
  const result = {
    dataList: [
      {dbName:"mysql-test1",tableName:"sm_user",colsName:"username",url:"192.168.6.55/mysql-test1/sm_user/username"},
      {dbName:"mysql-test1",tableName:"sm_role",colsName:"username",url:"192.168.6.55/mysql-test1/sm_role/username"},
      {dbName:"mysql-test2",tableName:"user_list",colsName:"username",url:"192.168.6.23/mysql-test2/user_list/username"},
      {dbName:"mysql-test2",tableName:"role_list",colsName:"usercode",url:"192.168.6.23/mysql-test2/role_list/usercode"}
    ],
    pageNum: 0,
    pageSize: 10,
    totalCount: 9,
  };
  return res.json(result);
}


function table2(req, res) {
  const result = {
    dataList: [
      {dbName:"oracle-test1",tableName:"sm_user",colsName:"idcode",url:"192.168.6.55/oracle-test1/sm_user/idcode"},
      {dbName:"oracle-test2",tableName:"user_list",colsName:"idcode",url:"192.168.6.23/oracle-test2/user_list/idcode"},
      {dbName:"oracle-test2",tableName:"user_list",colsName:"idtype",url:"192.168.6.23/oracle-test2/user_list/idtype"},
    ],
    pageNum: 0,
    pageSize: 10,
    totalCount: 9,
  };
  return res.json(result);
}
export default {
  'POST /api/draw/queryTreeList': tree,
  'POST /api/draw/queryTableList': table,
  'POST /api/draw/queryTableList2': table2,
  // 'POST /api/myAudit/queryList': myAuditList,
  // 'POST /api/optRecord/queryList': optRecordList,
  // 'POST /api/dowload/queryList': dowloadList,
  // 'POST /api/recycle/queryList': recycleList,

};
